body,html {
	color:#2e2e2e;
	font-family: 'Roboto', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	color: #ff0000;
	text-decoration: underline;
	font-weight: bold;
}

a:hover {
	text-decoration: none;
}

p {
	margin: 15px 0;
	font-weight: 400;
	font-size: 18px;
	line-height: 26px;
}

center {
	padding-bottom: 10px;
	padding-top: 10px;
	font-size: 12px;
}

.for_desktop {
	display: none!important;
}

.content img.float {
	max-width: 400px;
	margin:15px auto;
	display: block;
}

.content img.float.prod {
	padding-right: 30px;
}

.clearfix {
	float: none;
	clear: both;
}

.wrapper {
	width: 100%;
	min-width: 320px;
	margin: 0 auto;
	padding: 0 10px;
}

.title {
	font-size: 30px;
	font-weight: bold;
	font-family: 'Open Sans', sans-serif;
	text-align:center;
	margin:  10px 0;
	transform: scaleY(1.5);
}

 @supports (-webkit-background-clip: text) {
	.title { -webkit-text-fill-color:transparent;
	background: linear-gradient(to right, #0c0c0c, #e7e7e7);
	-webkit-background-clip: text;
	background-clip: text;}
}

.menu {
	border-top:1px solid #d8d8d8;
	border-bottom: 1px solid #d8d8d8;
	text-align:center;
}

.menu .wrapper {
	padding-top: 3px;
	padding-bottom: 3px;
}

.menu ul li {
	font-size: 16px;
	list-style: none;
	display: inline-block;
	background: url(./menu_li.png) right 5px center no-repeat;
	padding: 10px 20px 10px 5px;
	text-transform: uppercase;
}

.menu ul li.for_desktop {
	display: none;
}

.menu ul li.active {
	background: url(./menu_li_active.png) right 5px center no-repeat #ff0000;
	color:#fff;
}

.content {
	color: #383838;
}
.content span.date{
	display: block;
	padding-top: 20px;
	color: #a4a4a4;
	font-weight: 300;
	font-size: 14px;
}
.content h1 {
	font-weight: bold;
	font-size: 27px;
	color:#ff0101;
	margin-top: 15px;
	text-transform: uppercase;
}

.content h1 span {
	color: #383838;
}

.content img {
	width: 100%;
	margin:15px 0;
}

.content p{
	clear: both;
}

.img_wrap {
	position: relative;
	margin: 15px 0;
}

.img_wrap img {
	margin:0;
}

.img_wrap .before-after {
	position: absolute; width: 100%;
	/*height: 26px;*/
	bottom: 4px;
	left: 0;
	background: rgba(56, 56, 56, 0.7);
}

ul.comments li .info span {
	display: block;
}

.img_wrap .before-after .before {
	position: relative;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	margin: 0;
	width: 49%;
    text-align: center;
   display: inline-block;
   padding-left: 1%;
}

.img_wrap .before-after .after {
	position: relative;
	font-size: 18px;
	font-weight: bold;
	color:#ffb400;
	margin: 0;
	width: 49%;
    text-align: center;
    display: inline-block;
    padding-left: 2%;
}

.img_prod {
	width: 200px!important;
	margin: 15px auto!important;
	display: block;
}

a.button {
	width: 280px;
	margin: 15px auto;
	display: block;
	color: #fff;
	font-weight: bold;
	font-size: 24px;
	text-align:center;
	padding: 10px 0; 
	text-decoration: none;

	-webkit-box-shadow: 0px 1px 2px #222;
    -moz-box-shadow: 0px 1px 2px #222;
    box-shadow: 0px 1px 2px  #222;

	background: #ff1f1f; /* for non-css3 browsers */ 
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1f1f', endColorstr='#e00000'); /* для IE6-9 */
	background: -webkit-linear-gradient(top, #ff1f1f, #e00000); /* для webkit-браузеров */
	background: -moz-linear-gradient(top,  #ff1f1f,  #e00000); /* для firefox 3.6+ */ 
	background: -o-linear-gradient(top,  #ff1f1f,  #e00000); /* для Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ff1f1f,  #e00000); /* для IE10+, т.к. лично я пока не проверял нужен ли префикс */	
	background: linear-gradient(to bottom,  #ff1f1f,  #e00000); /* W3C */

   -moz-border-radius: 10px; /* Firefox */
   -webkit-border-radius: 10px; /* Safari, Chrome */
   -khtml-border-radius: 10px; /* KHTML */
   border-radius: 10px; /* CSS3 */

   -moz-transition: all 0.7s ease-out;
    -o-transition: all 0.7s ease-out;
    -webkit-transition: all 0.7s ease-out;
    transition: all 0.7s ease-out;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

a.button:hover, a.learn_more:hover {
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

.content h2 {
	font-size: 30px;
	font-weight: bold;
	text-transform: uppercase;
	text-align:center;
	margin: 30px 0 20px;
} 

h2.comments_h {
	margin: 40px 0 -10px;
}
.comments{
	margin-top: 10px;
}
ul.comments li {
	list-style: none;
	display: block;
	padding: 30px 0;
	position: relative;
}

ul.comments li:nth-child(2n) {
	background: #ececec;
}

/*ul.comments li:last-child {
	padding-bottom: 0;
}*/

ul.comments li:first-child {
	padding-top: 0;
}

ul.comments li:nth-child(-n+9) {
	display: none;
}

ul.comments li .table {
	display: table;
	table-layout: fixed;
	border-spacing: 0px;
	margin-bottom: 10px;

}

ul.comments li .ava {
	display: table-cell;
	width: 85px;
}

ul.comments li .ava img {
	width: 100%;
	margin: 0;
}

ul.comments li .info {
	display: table-cell;
	font-size: 18px;
	font-weight: bold;
	vertical-align: middle;
	padding-left: 15px;
}

ul.comments li .info span.date {
	color: #a4a4a4;
	font-size: 14px;
	font-weight: 300;
}

ul.comments li .comment_text {
	font-size: 17px;
	font-weight: 300;
}

.comment_text p {
	margin: 0;
}

ul.comments li .comment_text img {
	width: 100%;
	margin: 10px 0;
}

@media (min-width: 640px) {
	/*.wrapper {
		width: 640px;
	}*/

	.img_wrap .before-after {
		/*height: 36px;*/
	}

	.img_wrap .before-after .before, .img_wrap .before-after .after {
		font-size: 20px;
		line-height: 36px;
	}

}

@media (min-width: 992px) {
	.comments{
		margin-top: 0px;
	}
	.for_mobile {
		display: none!important;
	}
	body {
		background: #efefef;
	}

	.wrapper {
		background: #fff;
	}

	.wrapper {
		width:100%;
		padding: 0 20px;
	}
	.for_desktop {
		display: block!important;
	}

	.content {
		width: 75%;
		float: left;
	}

	.sidebar {
		width: 22%;
		float: right;
		padding-top:25px;
	}

	.sidebar img {
		width: 100%;
	}

	.sidebar .day_photo{
		text-transform: uppercase;
		padding: 7px 5px 5px;
		background: #ff0000;
		position: relative;
		font-size: 18px;
		font-weight: bold;
		color: #fff;
		left:20%;
		    width: 60%;
    text-align: center;
    margin-top: -5px;

	}

	.sidebar .example {
		margin: 30px 0 0;
	}

	.sidebar .example_name {
		color:#000;
		font-size: 20px;
		font-weight: bold;
		text-align:center;
	}

	a.learn_more {
		width: 90%;
		margin: 15px auto;
		display: block;
		color: #fff;
		font-weight: bold;
		font-size: 18px;
		text-align:center;
		padding: 7px 0; 
		text-decoration: none;

		-webkit-box-shadow: 0px 1px 2px #222;
	    -moz-box-shadow: 0px 1px 2px #222;
	    box-shadow: 0px 1px 2px  #222;

		background: #ff1f1f; /* for non-css3 browsers */ 
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1f1f', endColorstr='#e00000'); /* для IE6-9 */
		background: -webkit-linear-gradient(top, #ff1f1f, #e00000); /* для webkit-браузеров */
		background: -moz-linear-gradient(top,  #ff1f1f,  #e00000); /* для firefox 3.6+ */ 
		background: -o-linear-gradient(top,  #ff1f1f,  #e00000); /* для Opera 11.10+ */
		background: -ms-linear-gradient(top,  #ff1f1f,  #e00000); /* для IE10+, т.к. лично я пока не проверял нужен ли префикс */	
		background: linear-gradient(to bottom,  #ff1f1f,  #e00000); /* W3C */

	   -moz-border-radius: 30px; /* Firefox */
	   -webkit-border-radius: 30px; /* Safari, Chrome */
	   -khtml-border-radius: 30px; /* KHTML */
	   border-radius: 30px; /* CSS3 */

	   -moz-transition: all 0.7s ease-out;
	    -o-transition: all 0.7s ease-out;
	    -webkit-transition: all 0.7s ease-out;
	    transition: all 0.7s ease-out;
	    -webkit-transform: scale(1);
	    -moz-transform: scale(1);
	    -o-transform: scale(1);
	    transform: scale(1);
	}

	.sidebar .adv {
		margin: 25px 0;
		font-size: 14px;
		font-weight: 300;
	}
		
	.sidebar .adv img {
		width: 60px;
		float: left;
		margin-right: 10px;
	}

	.menu ul li.for_desktop {
		display: inline-block!important;
	}

	.content h1 {
		font-size: 40px;
		margin-bottom: 15px;
	}

	.content .left {
		float: left;
		width: 54%;
		margin-right: 3%;
	}

	.content .right {
		float: right;
		width: 54%;
		margin-left: 3%;
	}

	.content img.float {
		width: 43%;
		margin-top: 35px;
	}

	.content img.for_desktop {
		border:1px solid #e8e8e8;
	}

	.img_wrap .before-after {
		/*height: 46px;*/
	}

	.sidebar .img_wrap .before-after {
		/*height: 26px;*/
	}

	.img_wrap .before-after .before {
		bottom: 0px;
		font-size: 24px;
		line-height: 46px;
	}

	.img_wrap .before-after .after {
		font-size: 24px;
		line-height: 46px;
	}

	.sidebar .img_wrap .before-after .before {
		bottom: 0px;
		line-height: 26px;
		font-size: 18px;
	}

	.sidebar .img_wrap .before-after .after {
		bottom: 0px;
		line-height: 26px;
		font-size: 18px;
		color: #fff;
	}

	h2.comments_h {
		margin: 55px 0 10px;
	}	

	.comments li:nth-child(2n) {
		background: none!important;

	}

	.desktop_wrapper {
		background: #fff;
		width:100%;
		margin:0 auto;
	}
	.comments li .wrapper {
		padding-right: 256px;
		position: relative;	
	}

	.bottom.wrapper {
		padding-top: 15px;
		padding-bottom: 15px;
		padding-right: 256px;
	}

	a.button {
		font-size: 36px;
		width: 400px;
		padding: 20px 0;
	}

	.comment_text img {
		width: 70%!important;
		margin-left: 15%!important;
	}

	.comments li .background {
		width: 76%;
		height: 100%;
		position: absolute;
		top: 0;
	}

	.comments li:nth-child(2n) .background {
		background: #e2e2e2;
	}

	.comments li:nth-child(2n) .wrapper {
		background: none;
	}

	ul.comments li:nth-child(-n+10) {
	display: block;
	}

	.wrap_menu {
		width: 100%;
		margin: 0 auto;
	}

	.title {
		width: 30%;
		float: left;
		text-align:left;
		font-size: 36px;
		line-height: 75px;
	}

	.for_title {
		float: right;
		background: url(./for_title.png) right center no-repeat;
		background-size: cover;
		width: 600px;
		height: 75px;
		margin: 10px 0;
		font-size: 24px;
		color:#fff;
		font-family: 'Open Sans', sans-serif;
		text-decoration: underline;
		text-align: right;
		padding-top:30px;
		padding-right: 15px; 
	}

	
}

@media (min-width: 1024px) {
	.wrapper {
		width: 1007px;

	}
	.desktop_wrapper {
		width: 1007px;
	}
	.wrap_menu {
		width: 1007px;
	}
}

@media (max-width: 991px) {
	.wrap_menu {
		display: none;
	}

	p {
		line-height: 21px;
	}

}

@media (max-width: 640px) {
	ul.comments li .ava {
		width: 60px;
	}
	.content h1 {
		font-weight: bold;
		font-size: 23px;
	}
	.wrapper {
		width: 100%;
		min-width: 300px;
		margin: 0 auto;
		padding: 0 10px;
	}
}
